---@class Battle.AiDecorator:Battle.AiBehavior
local AiDecorator = Battle.CreateClass("AiDecorator",Battle.AiBehavior)
Battle.AiDecorator = AiDecorator
function AiDecorator:addChild(child)
    ---@type Battle.AiBehavior
    self.child = child
    child.parent = self
end
function AiDecorator:removeChild()
    self.child = nil
end
function AiDecorator:reset()
    Battle.AiBehavior.reset(self)
    if self.child then
        self.child:reset()
    end
end